package com.bwie.service.impl;

import com.bwie.common.domain.User;
import com.bwie.common.domain.request.LoginReq;
import com.bwie.mapper.SysUserMapper;
import com.bwie.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @className: SysUserServiceImpl
 * @Description: TODO
 * @version: v1.８.0
 * @author: 郑伦
 * @date: 2025/7/31 9:59
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    //自动装配mapper层
    @Autowired
    SysUserMapper sysUserMapper;

    @Override
    public User selectUser(LoginReq loginReq) {
        //查询用户信息
         User user = sysUserMapper.selectUser(loginReq);
         return user;
    }
}